# 作者：薛丰坤
# 2025年06月04日22时43分12秒
# 2634661037@qq.com
class Animal:
    def __init__(self, name):
        self.name = name

    def eat(self):
        print("给我吃---")

    def drink(self):
        print("给我喝---")

    def run(self):
        print("快跑啊---")


class Dog(Animal):
    def __init__(self, name, color):

        super().__init__(name)
        self.color = color

    def bark(self):
        print("汪汪叫---")


if __name__ == '__main__':
    dog = Dog("大黄", "黄色")
    print(dog.name)
    print(dog.color)
    dog.bark()
